package com.bestcem.xm.deliver.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bestcem.xm.component.mybatis.mapper.XmCommonMapper;
import com.bestcem.xm.deliver.controller.v2.param.SelectParam;
import com.bestcem.xm.deliver.controller.v2.vo.SurveyDeliverPageVo;
import com.bestcem.xm.deliver.entity.DeliverDeliver;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author been
 * @description 针对表【ds_deliver_deliver】的数据库操作Mapper
 * @createDate 2022-11-07 13:49:46
 */
@Mapper
public interface DeliverDeliverMapper extends XmCommonMapper<DeliverDeliver> {

    /**
     * 分页获取投放
     *
     * @param page  page
     * @param param param
     * @return 分页数据
     */
    Page<SurveyDeliverPageVo> pageDeliver(Page<SurveyDeliverPageVo> page, @Param("param") SelectParam param);

    /**
     * 获取当前问卷 推送时间段的所有的deliver_ids
     */
    List<String> getDeliverIdsByDtPid(String projectId, LocalDateTime deliverDtGte, LocalDateTime deliverDtLt);
}




